package org.dfl.plugin.editor.parts;

import org.eclipse.gef.EditPart;
import org.eclipse.gef.EditPartFactory;


/**
 * Factory that maps model elements to TreeEditParts. TreeEditParts are used in
 * the outline view of the DFLEditor.
 * 
 * @author Piotr Wlodarczyk
 */
public class DflTreeEditPartFactory implements EditPartFactory {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.gef.EditPartFactory#createEditPart(org.eclipse.gef.EditPart,
	 *      java.lang.Object)
	 */
	public EditPart createEditPart(EditPart context, Object modelElement) {
		/*
		 * TODO dodac *Part dla poszczegolnych obiektow wyswietlanych na panelu
		 * bocznym 
		 */
//		EditPart e = null;
//		if (modelElement instanceof TransitionModelElement) {
//			e= new TransitionEditPart();
//		}else if (modelElement instanceof PlaceModelElement) {
//			e= new PlaceEditPart();
//		}
//		if(e!=null){
//			e.setModel(modelElement);
//		}
		return null; // will not show an entry for the corresponding model
						// instance
	}

}
